package com.ffcs.crmd.tsp.common.netty;

public class RequestCode {
    
    public static final int TEST_CONNECT                        = 1;
    public static final int INTERRUPT_JOB_DETAIL_RUNNING_FINISH = 10;
    public static final int RESET_JOB_DETAIL_RUNNING            = 11;
    public static final int COMPLETE_JOB_DETAIL                 = 12;
    public static final int RESET_JOB_DETAIL_DEATH              = 13;
    public static final int HEART_BEAT                          = 15;
    public static final int RUN_JOB_DETAIL                      = 16;
    public static final int RUN_JOB_DETAIL_STATFUL              = 17;
    public static final int INTERRUPT_JOB_DETAIL_RUNNING        = 18;
    public static final int UPDATE_THREAD_POOL                  = 19;
    
    public static final int PAUSE_JOB_DETAIL                    = 20;
    public static final int PAUSE_JOB_GROUP                     = 21;
    public static final int PAUSE_JOB                           = 22;
    
    public static final int RESUME_JOB_DETAIL                   = 30;
    public static final int RESUME_JOB_GROUP                    = 31;
    public static final int RESUME_JOB                          = 32;
    
    public static final int QUERY_CLUSTER_INSTANCE              = 41;
    public static final int QUERY_CLUSTER                       = 42;
    public static final int QUERY_JOB_DETAIL_THREAD_INFO        = 43;
    public static final int QUERY_JOB_DETAIL_DEATH              = 44;
    public static final int QUERY_JOB_DETAIL_TRACK              = 45;
    public static final int QUERY_JOB_DETAIL_RUNNING            = 46;
    public static final int QUERY_JOB_DETAIL_WAITING            = 47;
    public static final int QUERY_JOB_DETAIL_PARAM              = 48;
    public static final int QUERY_JOB_DETAIL                    = 49;
    public static final int QUERY_JOB_GROUP                     = 50;
    public static final int QUERY_JOB                           = 51;
    public static final int QUERY_SLICE_GROUP                   = 52;
    public static final int QUERY_SLICE                         = 53;
    public static final int QUERY_TASK_CONNECT_INFO             = 54;
    public static final int QUERY_JOB_IDENTITY_INFO             = 55;
    public static final int QUERY_JOB_DETAIL_RETRY              = 56;
    public static final int QUERY_TASK_IDENTITY                 = 57;
    
    public static final int UPDATE_JOB_DETAIL_PARAM             = 80;
    public static final int UPDATE_JOB_GROUP                    = 81;
    public static final int UPDATE_JOB                          = 82;
    public static final int UPDATE_SLICE_GROUP                  = 83;
    public static final int UPDATE_SLICE                        = 84;
    public static final int UPDATE_TASK_IDENTITY                = 85;
    
    public static final int CREATE_JOB_DETAIL                   = 100;
    public static final int CREATE_JOB_GROUP                    = 101;
    public static final int CREATE_JOB                          = 102;
    public static final int CREATE_SLICE_GROUP                  = 103;
    public static final int CREATE_SLICE                        = 104;
    public static final int CREATE_JOB_IDENTITY_INFO            = 105;
    public static final int CREATE_TASK_IDENTITY                = 106;
    public static final int CREATE_JOB_DETAIL_PARAM             = 107;
    
    public static final int DELETE_JOB_DETAIL                   = 120;
    public static final int DELETE_JOB_GROUP                    = 121;
    public static final int DELETE_JOB                          = 122;
    public static final int DELETE_SLICE_GROUP                  = 123;
    public static final int DELETE_SLICE                        = 124;
    public static final int DELETE_JOB_IDENTITY_INFO            = 125;
    public static final int DELETE_JOB_DETAIL_DEATH             = 126;
    public static final int DELETE_TASK_IDENTITY                = 127;
    public static final int DELETE_JOB_DETAIL_RUNNING           = 128;
    public static final int DELETE_JOB_DETAIL_PARAM             = 129;
    
    public static String getName(int code) {
        switch (code) {
            case 1:
                return "TEST_CONNECT";
            case 11:
                return "RESET_JOB_DETAIL_RUNNING";
            case 12:
                return "COMPLETE_JOB";
            case 13:
                return "RESET_JOB_DETAIL_DEATH";
            case 14:
                return "LOAD_JOB_DETAIL";
            case 15:
                return "HEART_BEAT";
            case 16:
                return "RUN_JOB_DETAIL";
            case 17:
                return "RUN_JOB_DETAIL_STATFUL";
            case 18:
                return "INTERRUPT_JOB_DETAIL_RUNNING";
            case 19:
                return "UPDATE_THREAD_POOL";
            
            case 20:
                return "PAUSE_JOB_DETAIL";
            case 21:
                return "PAUSE_JOB_GROUP";
            case 22:
                return "PAUSE_JOB";
            
            case 30:
                return "RESUME_JOB_DETAIL";
            case 31:
                return "RESUME_JOB_GROUP";
            case 32:
                return "RESUME_JOB";
            
            case 41:
                return "QUERY_CLUSTER_INSTANCE";
            case 42:
                return "QUERY_CLUSTER";
            case 43:
                return "QUERY_JOB_DETAIL_THREAD_INFO";
            case 44:
                return "QUERY_JOB_DETAIL_DEATH";
            case 45:
                return "QUERY_JOB_DETAIL_DEATH_TRACK";
            case 46:
                return "QUERY_JOB_DETAIL_RUNNING";
            case 47:
                return "QUERY_JOB_DETAIL_WAITING";
            case 48:
                return "QUERY_JOB_DETAIL_PARAM";
            case 49:
                return "QUERY_JOB_DETAIL";
            case 50:
                return "QUERY_JOB_GROUP";
            case 51:
                return "QUERY_JOB";
            case 52:
                return "QUERY_SLICE_GROUP";
            case 53:
                return "QUERY_SLICE";
            case 54:
                return "QUERY_TASK_CONNECT_INFO";
            case 55:
                return "QUERY_JOB_IDENTITY_INFO";
            case 56:
                return "QUERY_JOB_DETAIL_RETRY";
            case 57:
                return "QUERY_TASK_IDENTITY";
            
            case 80:
                return "UPDATE_JOB_DETAIL_PARAM";
            case 81:
                return "UPDATE_JOB_GROUP";
            case 82:
                return "UPDATE_JOB";
            case 83:
                return "UPDATE_SLICE_GROUP";
            case 84:
                return "UPDATE_SLICE";
            case 85:
                return "UPDATE_JOB_IDENTITY_INFO";
            
            case 100:
                return "CREATE_JOB_DETAIL";
            case 101:
                return "CREATE_JOB_GROUP";
            case 102:
                return "CREATE_JOB";
            case 103:
                return "CREATE_SLICE_GROUP";
            case 104:
                return "CREATE_SLICE";
            case 105:
                return "CREATE_JOB_IDENTITY_INFO";
            case 106:
                return "CREATE_TASK_IDENTITY";
            case 107:
                return "CREATE_JOB_DETAIL_PARAM";
            
            case 120:
                return "DELETE_JOB_DETAIL";
            case 121:
                return "DELETE_JOB_GROUP";
            case 122:
                return "DELETE_JOB";
            case 123:
                return "DELETE_SLICE_GROUP";
            case 124:
                return "DELETE_SLICE";
            case 125:
                return "DELETE_JOB_IDENTITY_INFO";
            case 126:
                return "DELETE_JOB_DETAIL_DEATH";
            case 127:
                return "DELETE_TASK_IDENTITY";
            case 128:
                return "DELETE_JOB_DETAIL_RUNNING";
            case 129:
                return "DELETE_JOB_DETAIL_PARAM";
        }
        return null;
    }
    
}
